package vip.xiaonuo.supplier.modular.warehouse.storages.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;
import vip.xiaonuo.supplier.modular.base.stores.entity.SupplierStores;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 仓库信息实体
 *
 * @author Mr.wu
 * @date  2025/03/15 19:51
 **/
@Getter
@Setter
@TableName("SUPPLIER_STORES")
public class SupplierStorages extends CommonEntity {

    /** 门店（仓库）ID */
    @TableId
    @Schema(description = "门店（仓库）ID")
    private String id;

    /** 所属门店 */
    @Schema(description = "所属门店")
    @Trans(type = TransType.SIMPLE, target = SupplierStores.class, fields = "storeName", alias = "stores", ref = "parentIdName")
    private String parentId;

     /**所属门店名称 */
    @Schema(description = "所属门店名称")
    @TableField(exist = false)
    private String parentIdName;

    /** 门店（仓库）名称 */
    @Schema(description = "门店（仓库）名称")
    private String storeName;

    /** 门店（仓库）图片 */
    @Schema(description = "门店（仓库）图片")
    private String storeImage;

    /** 排序码 */
    @Schema(description = "排序码")
    private Integer sortCode;

    /** 门店（仓库）电话 */
    @Schema(description = "门店（仓库）电话")
    private String storeTel;

    /** 门店（仓库）地址 */
    @Schema(description = "门店（仓库）地址")
    private String storeAddress;

    /** 负责人 */
    @Schema(description = "负责人")
    private String storePerson;

    /** 类型 */
    @Schema(description = "类型")
    private String storeType;

    /** 扩展信息 */
    @Schema(description = "扩展信息")
    private String extJson;

    /** 数据归属 */
    @Schema(description = "数据归属")
    private String companyId;
}
